﻿<%@ Page Title="Events" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Events.aspx.vb" Inherits="Events" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
    
    <asp:Panel ID="Panel1" runat="server" Direction="LeftToRight" 
        HorizontalAlign="Center">

    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <br /> 
        <p class="leadingStatement">
        See our recent and upcoming events! </p>
        <br />    
    <p class="fieldIds">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" 
            HorizontalAlign="Center" CssClass="gridview">
            <Columns>
                <asp:BoundField DataField="EventName" HeaderText="EventName" 
                    SortExpression="EventName" />
                <asp:BoundField DataField="EventDate" HeaderText="EventDate" 
                    SortExpression="EventDate" />
                <asp:BoundField DataField="EventTime" HeaderText="EventTime" 
                    SortExpression="EventTime" />
                <asp:BoundField DataField="Venue" HeaderText="Venue" SortExpression="Venue" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:BoundField DataField="Contact" HeaderText="Contact" 
                    SortExpression="Contact" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SingleMomMemberConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:SingleMomMemberConnectionString.ProviderName %>"         
            SelectCommand="SELECT [EventName], [EventDate], [EventTime], [Venue], [Description], [Contact] FROM [MomEvents]">
        </asp:SqlDataSource>
    <br />
    <br />
            
        <asp:Table ID="Table1" runat="server" HorizontalAlign="Center" Width="105px">
            <asp:TableRow runat="server" HorizontalAlign="Left">
                
                <asp:TableCell runat="server" HorizontalAlign="Left">
                <a id="A1" href="~/" runat="server">
        <img src="~/Images/events1.jpg" alt="Events Photo" runat="server"
             id="EventsPhoto1"/>
             </a>
                </asp:TableCell>
                
                <asp:TableCell ID="TableCell1" runat="server" HorizontalAlign="Right">
                <a id="A2" href="~/" runat="server">
        <img src="~/Images/events3.jpg" alt="Events Photo" runat="server"
             id="EventsPhoto3"/>
             </a>
                </asp:TableCell>

            </asp:TableRow>
            <asp:TableRow runat="server" HorizontalAlign="Right">
                
            </asp:TableRow>
        </asp:Table>
    </p>
    <br /> 
        <p class="leadingStatement">
        Please complete the form below to post upcoming events! </p>
        <br />
        <p>
    <br />
    <br />      &nbsp;      Name of Event: <asp:TextBox ID="tb_EventName" runat="server" Width="270px"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Date of Event (e.g Tuesday, June 19, 2013): <asp:TextBox ID="tb_EventDate" 
                runat="server" Width="219px"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Time of Event (e.g. 5:35 PM)<asp:TextBox ID="tb_EventTime" runat="server"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Venue: <asp:TextBox ID="tb_Venue" runat="server" Width="446px"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Description: <br /> &nbsp; <asp:TextBox ID="tb_Description" runat="server" Height="88px" 
                TextMode="MultiLine" Width="292px"></asp:TextBox>
    <br />
    <br />
    <br />      &nbsp;      Contact Phone: <asp:TextBox ID="tb_Contact" runat="server" Width="297px"></asp:TextBox>
    <br />
    <br />
            <asp:ImageButton ID="Button1" runat="server" ImageUrl="~/Images/post_event_button2.jpg" />
    <br />
    <br /> 
       
        </p>
    
    </asp:Panel>
</asp:Content>

